using System;
using System.Collections;
using System.Collections.Generic;

using Framework.Library.Base;

namespace Framework.Library.Domain
{
    public partial class PortalCommand : BusinessBase<int>
    {
        #region Declarations

		
		private int _commandParentID = default(Int32);
		private string _commandKey = String.Empty;
		private string _commandParam = String.Empty;
		private string _commandUrl = String.Empty;
		private int _commandOrder = default(Int32);
		private bool _commandVisible = default(Boolean);
		private bool _commandEnable = default(Boolean);
		private bool _isSuperUser = default(Boolean);
		private string _commandName = String.Empty;
		
		
		private IList<PortalPersonaluser> _portalPersonalusers = new List<PortalPersonaluser>();
		
        #endregion

        #region Constructors

        public PortalCommand() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_commandParentID);
			sb.Append(_commandKey);
			sb.Append(_commandParam);
			sb.Append(_commandUrl);
			sb.Append(_commandOrder);
			sb.Append(_commandVisible);
			sb.Append(_commandEnable);
			sb.Append(_isSuperUser);
			sb.Append(_commandName);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual int CommandParentID
        {
            get { return _commandParentID; }
			set
			{
				
				_commandParentID = value;
				
			}
        }
		
		public virtual string CommandKey
        {
            get { return _commandKey; }
			set
			{
				
				_commandKey = value;
				
			}
        }
		
		public virtual string CommandParam
        {
            get { return _commandParam; }
			set
			{
				
				_commandParam = value;
				
			}
        }
		
		public virtual string CommandUrl
        {
            get { return _commandUrl; }
			set
			{
				
				_commandUrl = value;
				
			}
        }
		
		public virtual int CommandOrder
        {
            get { return _commandOrder; }
			set
			{
				
				_commandOrder = value;
				
			}
        }
		
		public virtual bool CommandVisible
        {
            get { return _commandVisible; }
			set
			{
				
				_commandVisible = value;
				
			}
        }
		
		public virtual bool CommandEnable
        {
            get { return _commandEnable; }
			set
			{
				
				_commandEnable = value;
				
			}
        }
		
		public virtual bool IsSuperUser
        {
            get { return _isSuperUser; }
			set
			{
				
				_isSuperUser = value;
				
			}
        }
		
		public virtual string CommandName
        {
            get { return _commandName; }
			set
			{
				
				_commandName = value;
				
			}
        }
		
		public virtual IList<PortalPersonaluser> PortalPersonalusers
        {
            get { return _portalPersonalusers; }
            set
			{
				
				_portalPersonalusers = value;
				
			}
        }
		
        #endregion
    }
}
